package gui;

import javax.swing.table.AbstractTableModel;

/**
 * @author dotekien
 *         Date: Mar 31, 2006
 *         Time: 10:42:35 AM
 */
public class SameTableModel extends AbstractTableModel {
    protected String[] columnNames;
    protected Class types[];
    protected Object[][] data;

    public int getRowCount() {
        return data.length;
    }

    public int getColumnCount() {
        return columnNames.length;
    }

    public String getColumnName(int col) {
        return columnNames[col];
    }

    public Object getValueAt(int row, int col) {
        return data[row][col];
    }

    public Class getColumnClass(int i) {
        return types[i];
    }
}
